package com.open.capacity.salary.dao;

import com.open.capacity.salary.entity.GzItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 工资系统款项表
 *
 * @author
 * @email
 * @date 2021-08-02 14:26:51
 */
@Mapper
public interface GzItemDao {

    int init(@Param("companyId") String companyId, @Param("ztId") String ztId);

    int save(GzItem gzItem);

    int update(GzItem gzItem);

    int deleteByZtId(@Param("companyId") String companyId, @Param("ztId") String ztId);

    int delete(String id);

    GzItem findById(String id);

    List<GzItem> findByParentId(String parentId);

    List<GzItem> findByZtId(@Param("companyId") String companyId, @Param("ztId") String ztId);

    List<GzItem> findByZtIds(@Param("companyId") String companyId, @Param("ztIds") String[] ztIds);

    List<GzItem> findByCompanyId(@Param("companyId") String companyId);

    List<GzItem> findAll(Map<String, Object> params);

}
